package thinkingInJava.nesting.Inherit;

class WithInner2 {
  class Inner {
	  int m_i;
	  Inner(int i, String st){
		  m_i = i;
	  }
  }
}

class WithInner3 {
	class Inner2 extends WithInner2.Inner{	// 内部类的继承
		Inner2(WithInner2 w2){
			w2.super(0,"123");	//eee 为什么不是 w2.Inner.super(0,"123")
		}
	}
}

public class InheritInner2 extends WithInner2.Inner {
//! InheritInner() {} // Won't compile
	InheritInner2(WithInner2 wi, int i) {
		wi.super(i,"111");
  //enclosingClassReference.super();	// 书上说要这样才能编译通过，但实际上用了才编不过
}

public static void main(String[] args) {
  WithInner wi = new WithInner();
  InheritInner ii = new InheritInner(wi);
}
} ///:~
